<?php
/*
 * ThankPHP Version 0.1
 * @author etongchina@gmail.com
 * @2012.04.05
 * This is a system setting file
 */

#[system]
$DEBUG = False;
$PATH = dirname(__FILE__);
$CONFIG_FILE = __FILE__;
$DIR = substr($PATH, strlen($_SERVER['DOCUMENT_ROOT'])+1);

$TEMPLATE_DEBUG = $DEBUG;
$ADMINS = array(
    array('admin', 'admin@thankphp.net'),
);

$MANAGERS = $ADMINS;

$LANGUAGE_CODE = 'utf-8';

# 设置资源路径
$MEDIA_ROOT = $PATH.'/media/';

# 设置ThankPHP路径
$CORE_ROOT = $PATH.'/core/';

# 设置module路径
$MODULE_ROOT = $PATH.'/module/';
# Additional locations of static files
$STATICFILES_DIRS = array(
	'html',
);
$TEMPLATE_DIRS = array(
    # Don't forget to use absolute paths, not relative paths.
	$PATH.'/templates',
);
$INSTALLED_APPS = array(
    'books',
);

//mode:M.C.A.I.P
$URL_FORMAT = "module.cid.action.id.plus";

#添加特殊url映射
$URL_EXCEPT = array(
	'index'	=> 'index'
);

#[secret]
$DATABASES = array(
    'default' => array(
        'ENGINE'	=>	'mysql',			# Add 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME'		=>	'ims',	# Or path to database file if using sqlite3.
        'USER'		=>	'root',                 # Not used with sqlite3.
        'PASSWORD'	=>	'16552187',                 # Not used with sqlite3.
        'HOST'		=>	'127.0.0.1',                 # Set to empty string for localhost. Not used with sqlite3.
        'PORT'		=>	'3306',                 # Set to empty string for default. Not used with sqlite3.
    )
);
# Make this unique, and don't share it with anybody.
$SECRET_KEY = 'c+qow6%g@0ca62%$2c+8j2504zrhu@d**6-*%o%yo7s6k**!%y';
?>